//
//  RCtabBar.h
//  RCsinaMicroBlog
//
//  Created by Mr.Ray on 15/1/29.
//  Copyright (c) 2015年 Ray.peng. All rights reserved.
//

#import <UIKit/UIKit.h>
@class RCtabBar;
@protocol RCtabBarDelegate <NSObject>
/**
 *  代理方法, 用于监听自定义TabBar按钮的点击事件
 *
 *  @param tabBar 触发事件的控件
 *  @param from   以前按钮的索引
 *  @param to     当前点击按钮的索引
 */
- (void)tabBar:(RCtabBar *)tabBar selectedBtnFrom:(NSInteger)from to:(NSInteger)to;

@end
@interface RCtabBar : UIView

@property (nonatomic, weak) id<RCtabBarDelegate> delegate;

- (void)addItem:(UITabBarItem *)item;


@end
